﻿using System.Text.Json;
using Loong.Dependency;

namespace Loong.Auditing
{
    public class JsonAuditSerializer : IAuditSerializer, ITransientDependency
    {
        public string Serialize(object obj)
        {
            return JsonSerializer.Serialize(obj, obj.GetType());
        }
    }
}
